// SPDX-License-Identifier: GPL-2.0
/*
 * DTS file for phytium FT-2000/4 devboard (FT-2000/4-D4-DSK series)
 *
 * Copyright (C) 2018-2019, Phytium Technology Co., Ltd.
 */

/dts-v1/;
/memreserve/ 0x80000000 0x10000;

#include "ft2004-generic-psci-soc.dtsi"

/{
	model = "FT-2000/4-D4-DSK Development Board";
	compatible = "phytium,ft-2004";
	#address-cells = <2>;
	#size-cells = <2>;

	chosen {
		stdout-path = "uart1:115200n8";
	};

	memory@00{
		device_type = "memory";
		reg = <0x0 0x80000000 0x0 0x80000000>;
	};

	memory@01{
		device_type = "memory";
		reg = <0x20 0x00000000 0x3 0x80000000>;
	};

	firmware {
		optee {
			compatible = "linaro,optee-tz";
			method = "smc";
		};
	};
};

&uart1 {
	status = "ok";
};

&gmac0 {
	status = "ok";
	phy-mode = "rgmii-rxid";
};

&gmac1 {
	status = "ok";
	phy-mode = "rgmii-rxid";
};

&spi0 {
	status = "ok";
};

&qspi {
	status = "ok";
};

&i2c0 {
	status = "ok";
};

&i2c1 {
	status = "ok";
	#address-cells = <1>;
	#size-cells = <0>;

	rtc@68 {
		compatible = "dallas,ds1339";
		reg = <0x68>;
	};

};

&lpc {
	status = "ok";
};
